IntlTest is a part-in-progress that was written to test various international aspects of ODF. It has some features that may be useful as sample code:
• Subclass of FW_CEditView that handles Japanese script and inline input
• Mixin class that manages a TSMDocument
• Japanese strings in resources
• Selection and content classes for text edit views
• Undoable commands for text editing: typing, cut, copy, paste, clear, drop
• Font and Size menus
• Undoable command for changing font and font size
What’s missing:
• Ability to mix scripts within a text edit view
• Support for multiple data kinds is incomplete
• Undo/redo of typing is not totally reliable, especially in the Japanese edit view.
• Font settings are not saved in the document.
Description
IntlTest contains two edit text views and two static text views. The static and edit text views in the lower half of the window are both set to use the Osaka font and Japanese script. Input in the Japanese edit view uses the inline input method. The other text views are set to Roman fonts and script. The About Box also contains Japanese text.
If you run this part on a system lacking support for the Japanese script system, you'll see garbage characters instead of Japanese text, of course! Ç®ÇΩÇÃǵǛÇ≠ÇæÇ≥Ç¢ÅI